package com.batis.mapper;

import javax.sql.DataSource;

/**
 *  配置数据库 连接环境
 * @author isam2016
 * @create 2021-08-27 11:44 AM
 */
public class MYEnvironment {
    private String id;
    private DataSource dataSource;

    public MYEnvironment(String id, DataSource dataSource) {
        this.id = id;
//        this.transactionFactory = transactionFactory;
        this.dataSource = dataSource;
    }

    private MYEnvironment() {
    }
    public static class Builder {
        private MYEnvironment environment = new MYEnvironment();

        public Builder(String id, DataSource dataSource) {
            environment.id = id;
//            environment.transactionFactory = transactionManager;
            environment.dataSource = dataSource;
        }

        public MYEnvironment build() {
            return environment;
        }
    }

}
